projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5daab52
)
Only show Desktop in file chooser button if there is one
author
Christian Dywan
<christian@twotoasts.de>
Fri, 22 Oct 2010 14:07:25 +0000
(16:07 +0200)
committer
Christian Dywan
<christian@twotoasts.de>
Wed, 3 Nov 2010 18:19:19 +0000
(19:19 +0100)
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=632894
gtk/gtkfilechooserbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilechooserbutton.c
b/gtk/gtkfilechooserbutton.c
index 471be29800a1bc6ba22975ba2a90b9ba80ca08b7..d0b0268d10a11c852a92dc2687494321d44818d2 100644
(file)
--- a/
gtk/gtkfilechooserbutton.c
+++ b/
gtk/gtkfilechooserbutton.c
@@
-1685,7
+1685,10
@@
model_add_special (GtkFileChooserButton *button)
desktopdir = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
- if (desktopdir)
+ /* "To disable a directory, point it to the homedir."
+ * See http://freedesktop.org/wiki/Software/xdg-user-dirs
+ **/
+ if (g_strcmp0 (desktopdir, g_get_home_dir ()) != 0)
{
GtkTreePath *tree_path;
GCancellable *cancellable;